package common;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.ResourceBundle;

import model.ShareFileModel;

public abstract class Client {

	public static ResourceBundle rb = ResourceBundle.getBundle("init-conf");
	public boolean started = false;
	/** 文件通知等待线程开启状态 */
	public boolean waitNotifyStarted = false;
	/** 服务address */
	protected String address;
	/** 服务port */
	protected Integer port;
	/** getFile后当前正在读取的fileName */
	protected String fileName;
	/** getFile后当前正在读取的file encoding */
	protected String encoding;
	/** getFile后当前正在读取的file 文件尾 */
	protected Long fileSeek = 0L;
	/** 服务开放文件列表 */
	protected List<ShareFileModel> listShareFile = Collections.synchronizedList( new ArrayList<ShareFileModel>() );
	
	public String getAddress() {
		return address;
	}
	public Integer getPort() {
		return port;
	}
	public List<ShareFileModel> getListShareFile() {
		return listShareFile;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public void setPort(Integer port) {
		this.port = port;
	}
	public void setListShareFile(List<ShareFileModel> listShareFile) {
		this.listShareFile = listShareFile;
	}
	public Long getFileSeek() {
		return fileSeek;
	}
	public void setFileSeek(Long fileSeek) {
		this.fileSeek = fileSeek;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getEncoding() {
		return encoding;
	}
	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}
}
